package com.example.aerospacemanagementsystem.service.attendanceService.impl;


import com.example.aerospacemanagementsystem.entity.attendance.Cancellation;

import com.example.aerospacemanagementsystem.mapper.attendanceMapper.CancellationMapper;
import com.example.aerospacemanagementsystem.service.attendanceService.CancellationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 李明国
* @description 针对表【cancellation】的数据库操作Service实现
* @createDate 2023-10-20 15:27:09
*/
@Service
public class CancellationServiceImpl implements CancellationService{
    @Autowired
    private CancellationMapper cancellationMapper;

    @Override
    public int add(Cancellation cancellation) {
        return cancellationMapper.insert(cancellation);
    }

    @Override
    public int delete(Cancellation cancellation) {
        return cancellationMapper.delete(cancellation);
    }

    @Override
    public int update(Cancellation cancellation) {
        return cancellationMapper.update(cancellation);
    }

    @Override
    public List<Cancellation> getAllCancellation(Cancellation cancellation) {
        return cancellationMapper.getAllCancellation(cancellation);
    }

}




